<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<div class="layout">
    <table class="styled" cellspacing="0">
        <tr>
            <th class="styled">Type</th>
            <th class="styled">Name</th>
            <th class="styled">Path</th>
            <logic:iterate name="directoryDTO" property="contactDetailTypeValues" id="cdt">
                <th class="styled"><beans:write name="cdt" property="name"/></th>
            </logic:iterate>
        </tr>
        <logic:iterate name="directoryDTO" property="rows" id="row">
            <tr>
                <td class="styled">
                    <img src="
                    <logic:equal name="row" property="type" value="0"><html:rewrite page='/icons/organisation-16x16.png'/></logic:equal>
                    <logic:equal name="row" property="type" value="1"><html:rewrite page='/icons/department-16x16.png'/></logic:equal>
                    <logic:equal name="row" property="type" value="2"><html:rewrite page='/icons/person-16x16.png'/></logic:equal>
                    "/>
                </td>
                <td class="styled">
                    <html:link action="showNode.do" paramId="nodeId" paramName="row" paramProperty="nodeId">
                        <beans:write name="row" property="name"/>
                    </html:link>
                </td>
                <td class="styled">
                    <beans:write name="row" property="path"/>&nbsp;
                </td>
                <logic:iterate name="row" property="values" id="value">
                    <td class="styled">
                        <logic:notEmpty name="value"><beans:write name="value"/></logic:notEmpty>
                        <logic:empty name="value">&nbsp;</logic:empty>
                    </td>
                </logic:iterate>
            </tr>
        </logic:iterate>
    </table>
</div>
